<?php
function google_map_location_enterprise_options_setting_map_form(){
  $form['key'] = array(
    '#type' => 'textfield',
    '#title' => t('Google Key'),
	'#default_value' => variable_get('GOOGLE_KEY',GOOGLE_KEY),
  );
  $form['x'] = array(
    '#type' => 'textfield',
    '#title' => t('x'),
	'#default_value' => variable_get('GOOGLE_CENTER_X',GOOGLE_CENTER_X),
  );
  $form['y'] = array(
    '#type' => 'textfield',
    '#title' => t('y'),
	'#default_value' => variable_get('GOOGLE_CENTER_Y',GOOGLE_CENTER_Y),
  );
  $form['zoom'] = array(
    '#type' => 'textfield',
    '#title' => t('zoom'),
	'#default_value' => variable_get('GOOGLE_ZOOM',GOOGLE_ZOOM),
  );
  $form['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
	'#default_value' => variable_get('GOOGLE_MAP_WIDTH',GOOGLE_MAP_WIDTH),
  );
  $form['height'] = array(
    '#type' => 'textfield',
    '#title' => t('Height'),
	'#default_value' => variable_get('GOOGLE_MAP_HEIGTH',GOOGLE_MAP_HEIGTH),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Config'),
    
  );
  return $form;
}
function google_map_location_enterprise_options_setting_map_form_submit($form, & $form_state) {
  $form_values = $form_state['values'];
  if( isset($form_values['key'])){
    variable_set('GOOGLE_KEY',$form_values['key']);
  }
  if( isset($form_values['x'])){
    variable_set('GOOGLE_CENTER_X',$form_values['x']);
  }
  if( isset($form_values['y'])){
    variable_set('GOOGLE_CENTER_Y',$form_values['y']);
  }
  if( isset($form_values['width'])){
    variable_set('GOOGLE_MAP_WIDTH',$form_values['width']);
  }
  if( isset($form_values['height'])){
    variable_set('GOOGLE_MAP_HEIGTH',$form_values['height']);
  }
  if( isset($form_values['zoom'])){
    variable_set('GOOGLE_ZOOM',$form_values['zoom']);
  }
  drupal_set_message(t('You configuration have been saved!'));
}
?>